clear
infix nep 2-5 type 7-7 ndays 9-12 tlow 14-22 t2 24-32 t3 34-42 t4 44-52 t5 54-62 t6 64-72 t7 74-82 t8 84-92 t9 94-102 thigh 104-112 plow 117-125 p2 127-136 p3 138-147 p4 149-158 p5 160-169 p6 171-180 p7 182-191 p8 193-202 p9 204-213 phigh 215-224 using "e:\FIS_duration\price_turnover_fee_over_episode_rep.txt"
log using "E:\FIS_duration\price_turn_deciles_rep.log"
destring tlow, force replace
summarize tlow t2 t3 t4 t5 t6 t7 t8 t9 thigh plow p2 p3 p4 p5 p6 p7 p8 p9 phigh, detail
ttest plow == 1
ttest p2 == 1
ttest p3 == 1
ttest p4 == 1
ttest p5 == 1
ttest p6 == 1
ttest p7 == 1
ttest p8 == 1
ttest p9 == 1
ttest phigh == 1
summarize tlow t2 t3 t4 t5 t6 t7 t8 t9 thigh plow p2 p3 p4 p5 p6 p7 p8 p9 phigh if type == 1, detail
ttest plow == 1 if type == 1
ttest p2 == 1 if type == 1
ttest p3 == 1 if type == 1
ttest p4 == 1 if type == 1
ttest p5 == 1 if type == 1
ttest p6 == 1 if type == 1
ttest p7 == 1 if type == 1
ttest p8 == 1 if type == 1
ttest p9 == 1 if type == 1
ttest phigh == 1 if type == 1
summarize tlow t2 t3 t4 t5 t6 t7 t8 t9 thigh plow p2 p3 p4 p5 p6 p7 p8 p9 phigh if type == 2, detail
ttest plow == 1 if type == 2
ttest p2 == 1 if type == 2
ttest p3 == 1 if type == 2
ttest p4 == 1 if type == 2
ttest p5 == 1 if type == 2
ttest p6 == 1 if type == 2
ttest p7 == 1 if type == 2
ttest p8 == 1 if type == 2
ttest p9 == 1 if type == 2
ttest phigh == 1 if type == 2
summarize tlow t2 t3 t4 t5 t6 t7 t8 t9 thigh plow p2 p3 p4 p5 p6 p7 p8 p9 phigh if type == 3, detail
ttest plow == 1 if type == 3
ttest p2 == 1 if type == 3
ttest p3 == 1 if type == 3
ttest p4 == 1 if type == 3
ttest p5 == 1 if type == 3
ttest p6 == 1 if type == 3
ttest p7 == 1 if type == 3
ttest p8 == 1 if type == 3
ttest p9 == 1 if type == 3
ttest phigh == 1 if type == 3
log close

